package com.yenlien.traceyun.produce.entity;

import com.yenlien.traceyun.business.entity.TraceEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

@Entity
@Table(name = "t_produce_process_technology")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ProcessTechnologys extends TraceEntity {
    @Column(name = "materialCode", length = 50)
    private String materialCode;         //物料类型
    @Column(name = "materialName", length = 50)
    private String materialName;         //物料名称
    @Column(name = "materialId", length = 50)
    private String materialId;           //物料id
    @Column(name = "processName", length = 50)
    private String processName;          //工艺名称
    @Column(name = "approvalNumber", length = 50)
    private String approvalNumber;       //批准文号
    @Column(name = "standard", length = 50)
    private String standard;             //执行标准
    @Column(name = "standardImg", length = 100)
    private String standardImg;          //标准图片
    //集合
    @Transient
    private List<ProcessSpecification> specification;
}
